#!/bin/bash

n=`cat url.txt | wc -l`

for ((i=1;i<=$n;i++))

do
	echo $i
	url=`shuf -n1 url.txt`
	r=`shuf -i 6-100 -n 1`
	c=`shuf -i 1-5 -n 1`
	echo $url
        echo $r
        echo $c
	##将测试的结果写入到test_ab.log >> results.log &
        ab -n $r -c $c $url >> results.log &
done
